<script setup>
const user = {
  name: "张三",
  age: 28,
  gender: "男",
  hobby: "阅读、运动",
  job: "前端开发工程师",
  bio: "热爱学习新技术，喜欢分享和交流。致力于创造优秀的用户体验，不断探索前端技术的边界。",
};
</script>
<template>
  <div class="profile-content">
    <ul class="info-list">
      <li class="info-item">
        <span class="info-label">年龄：</span>
        <span class="info-value">{{ user.age }}</span>
      </li>
      <li class="info-item">
        <span class="info-label">性别：</span>
        <span class="info-value">{{ user.gender }}</span>
      </li>
      <li class="info-item">
        <span class="info-label">爱好：</span>
        <span class="info-value">{{ user.hobby }}</span>
      </li>
      <li class="info-item">
        <span class="info-label">职业：</span>
        <span class="info-value">{{ user.job }}</span>
      </li>
    </ul>
    <div class="bio-section">
      <div class="bio-label">个人简介</div>
      <div class="info-value">{{ user.bio }}</div>
    </div>
  </div>
</template>
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.header h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 300;
}

.profile-content {
  padding: 40px 30px;
}

.info-list {
  list-style: none;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  min-width: 120px;
  font-weight: 600;
  color: #667eea;
  font-size: 1.1em;
}

.info-value {
  flex: 1;
  color: #333;
  font-size: 1.1em;
  line-height: 1.6;
}

.bio-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-top: 20px;
  border-left: 4px solid #667eea;
}

.bio-label {
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 10px;
  }

  .header {
    padding: 30px 20px;
  }

  .header h2 {
    font-size: 2em;
  }

  .profile-content {
    padding: 30px 20px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .info-label {
    min-width: auto;
  }
}
</style>
